package com.wt.admin.service.ai.impl;

import com.wt.admin.domain.dto.ai.AgentsClassDTO;
import com.wt.admin.domain.vo.ai.AgentsClassVO;
import com.wt.admin.service.ai.AgentsClassService;
import com.wt.admin.service.ai.AgentsInfoService;
import com.wt.admin.service.ai.AgentsProxyService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;


@Service
@Slf4j
public class AgentsProxyServiceImpl implements AgentsProxyService {

    @Resource
    private AgentsClassService agentsClassService;
    @Resource
    private AgentsInfoService agentsInfoService;

    @Override
    public AgentsClassService getAgentsClassService() {
        return agentsClassService;
    }

    @Override
    public AgentsInfoService getAgentsInfoService() {
        return agentsInfoService;
    }

    @Override
    public AgentsClassVO classDel(AgentsClassDTO data) {
        agentsClassService.classDel(data);
        agentsInfoService.classDel(data.getId());
        return null;
    }

    public void init(){
        log.debug("初始化智能体");
        agentsInfoService.init();
    }

}
